//
//  ZMCategoryViewController.m
//  DaMei
//
//  Created by mac on 16/2/22.
//  Copyright © 2016年 mac. All rights reserved.
//

#import "ZMCategoryViewController.h"
#import "ZMDropdownView.h"
#import "ZMCategoryModel.h"

@interface ZMCategoryViewController ()

@end

@implementation ZMCategoryViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    ZMDropdownView *dropdown = [ZMDropdownView dropdownView];
    
    [self.view addSubview:dropdown];
    
    self.preferredContentSize = dropdown.size;
    
    
//    数据转模型
    dropdown.categoryArray = [ZMCategoryModel objectArrayWithFilename:@"categories.plist"];
    
}


@end
